Allow a specified version in check-build-logs
authorStuart Prescott <stuart@debian.org>
Sun, 2 Mar 2025 01:08:02 +0000 (12:08 +1100)
committerStuart Prescott <stuart@debian.org>
Sun, 2 Mar 2025 01:08:02 +0000 (12:08 +1100)
debian/check-build-logs

index 76f0465c00372f0ab240d00da1d25b18294de57c..2a278aae48964f5e115af306bdfdcf4689b0db49 100755 (executable)
@@ -4,6 +4,7 @@ from collections import defaultdict
 from pathlib import Path
 import re
 import subprocess
+import sys
 
 from debian.changelog import Changelog
 
@@ -99,6 +100,9 @@ if __name__ == "__main__":
     pkg = ch.package
     ver = str(ch.version)
 
+    if len(sys.argv) == 2:
+        ver = sys.argv[1]
+
     fetch_build_logs(pkg, ver)
     results = process_logs(pkg, ver)
     print_table(results)